home *** CD-ROM | disk | FTP | other *** search
/ Champak 43 / Vol 43.iso / games / superdog.swf / scripts / DefineSprite_65_en10 / frame_43 / DoAction.as
Encoding:
Text File  |  2007-06-25  |  321 b   |  19 lines

  1. stop();
  2. var moveline = random(2) + 3;
  3. var yinc = 0;
  4. _parent._parent.score += 50;
  5. onEnterFrame = function()
  6. {
  7.    this._rotation -= 60;
  8.    yinc += 1;
  9.    this._y -= yinc;
  10.    if(_parent._parent.man._xscale == 100)
  11.    {
  12.       this._x += 3 * moveline;
  13.    }
  14.    else
  15.    {
  16.       this._x -= 3 * moveline;
  17.    }
  18. };
  19.